<div ng-controller="VenueEditCtrl">
    <div class="bg-light lter b-b wrapper-md">
        <h1 class="m-n font-thin h3">{{venue.Name}}</h1>
    </div>
    <div class="wrapper-md">
        <form role="form" class="form-horizontal" name="venueForm" ng-submit="submit()">
            <div class="row">
                <div class="col-md-6 form-group padder-md m-n">
                    <label class="control-label required">名称</label>
                    <input class="form-control" ng-model="venue.Name" required/>
                </div>
                <div class="col-md-6 form-group padder-md  m-n">
                    <label class="control-label required">面积(平方米)</label>
                    <input class="form-control" ng-model="venue.Area" type="number" required/>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-group  padder-md  m-n">
                    <label class="control-label required">容纳人数</label>
                    <input class="form-control" ng-model="venue.Capacity"  type="number" required/>
                </div>
                 <div class="col-md-6 form-group  padder-md  m-n">
                    <label class="control-label required">设备</label>
                    <input type="datetime" class="form-control" ng-model="venue.Devices"  type="text" required/>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-group padder-md m-n">
                    <label class="control-label required">用途</label>
                    <textarea class="form-control" rows="5" ng-model="venue.Purpose" required></textarea>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6 form-group padder-md m-n">
                    <label class="control-label required">封面图</label>
                    <input ui-jq="filestyle" type="file" ui-options="{'buttonText':'选择图片'}" accept="image/*" ng-file-model="CoverImage" />
                    <p>
                        <img class="thumbnail w-m-100" ng-src="{{CoverImage.model.data || venue.ImageUrl}}" />
                    </p>
                </div>
                <div class="col-md-6 form-group padder-md m-n">
                    <label class="control-label required">前景图</label>
                    <input ui-jq="filestyle" type="file" ui-options="{'buttonText':'选择图片'}" accept="image/*" ng-file-model="FrontImage" />
                    <p><img class="thumbnail w-m-100" ng-src="{{FrontImage.model.data || venue.FrontImageUrl}}"/>
                    </p>
                </div>
            </div>

            <div class="row text-center padder-v">
                <button class="btn btn-primary" type="submit" ng-disabled="venueForm.$invalid && venueForm.$pristine"><i class="fa fa-check-circle"></i> 提交</button>
                <span class="divider"></span>
                <button class="btn btn-default" type="button" onclick="history.go(-1);"><i class="fa fa-reply"></i> 返回</button>
           </div>
        </form>
    </div>
</div>